.class Lrexsee/security/RexseeDigest$1;
.super Lrexsee/core/browser/clazz/SyncTask$StringRunnable;
.source "RexseeDigest.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/security/RexseeDigest;->get_(Ljava/lang/String;Ljava/lang/String;ZZZ)Ljava/lang/String;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/security/RexseeDigest;

.field private final synthetic val$algorithm:Ljava/lang/String;

.field private final synthetic val$bytes:[B


# direct methods
.method constructor <init>(Lrexsee/security/RexseeDigest;Ljava/lang/String;[B)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/security/RexseeDigest$1;->this$0:Lrexsee/security/RexseeDigest;

    iput-object p2, p0, Lrexsee/security/RexseeDigest$1;->val$algorithm:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/security/RexseeDigest$1;->val$bytes:[B

    .line 39
    invoke-direct {p0}, Lrexsee/core/browser/clazz/SyncTask$StringRunnable;-><init>()V

    return-void
.end method


# virtual methods
.method public run()Ljava/lang/String;
    .locals 5

    .prologue
    .line 43
    const/4 v0, 0x0

    :try_start_0
    check-cast v0, [B

    .line 44
    .local v0, "digest":[B
    iget-object v3, p0, Lrexsee/security/RexseeDigest$1;->val$algorithm:Ljava/lang/String;

    invoke-static {v3}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object v2

    .line 45
    .local v2, "messageDigest":Ljava/security/MessageDigest;
    iget-object v3, p0, Lrexsee/security/RexseeDigest$1;->val$bytes:[B

    invoke-virtual {v2, v3}, Ljava/security/MessageDigest;->update([B)V

    .line 46
    invoke-virtual {v2}, Ljava/security/MessageDigest;->digest()[B

    move-result-object v0

    .line 47
    invoke-static {v0}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v3

    .line 49
    .end local v0    # "digest":[B
    .end local v2    # "messageDigest":Ljava/security/MessageDigest;
    :goto_0
    return-object v3

    .line 48
    :catch_0
    move-exception v3

    move-object v1, v3

    .line 49
    .local v1, "e":Ljava/lang/Exception;
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "[Exception]"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0
.end method
